import { Application } from "egg";

export default (app: Application) => {
    const { router, controller } = app;
    // const checktoken = app.middleware.checktoken();
    const checkopenid = app.middleware.checkopenid();
    router.post('/api/action/like', checkopenid, controller.ctrlAction.like);

    // ------------------------------ 优惠券
    router.get('/api/coupon/get', controller.ctrlAction.getCoupon);

};
